package org.datacoder.geocoding.jurisdiction

/**
 * A country.  Always the United States, but we need this
 * for consistency.  Has states as children.
 */
class Country extends Jurisdiction{

    SortedSet<State> states

    static hasMany = [states:State]

    public static String retrieveShortName(){
        return "Country"
    }
    public String toString(){
        com.vividsolutions.jts.geom.Point point = getMultiPolygon().getCentroid()
        return "Country--Name: ${name}; Lat/Long: (${point.getY()}, ${point.getX()})"
    }

}

